<!-- 帖子 -->
<link rel="stylesheet" href="/css/otherInformation.css">
<style>
.content-main .user-model-content ul li {
    font-size: 14px;
	color: #737373;
	line-height: 33px;
}
</style>
<div class="main layui-clear">
	<div class="fly-main layui-clear">
		<div class="wrap clearfix">
			<#include "/apps/user/otheruser/otherusermenu.html">
			<div class="home-right" id="commenttopic">
				<div class="content" style="padding-top: 10px;">
					<div class="layui-tab layui-tab-brief content-style" lay-filter="docDemoTabBrief">
					  <#include "/apps/user/otheruser/centermenu.html">
					  <div class="layui-tab-content content-main" style="height: 100px;">
					    <div class="layui-tab-item layui-show user-model-content">
						    <ul>
						    	<#if topicList?? && topicList.content??>
						    	<#list topicList.content as topic>
						    		<li class="mobile-display-none"><span class="username">${curruser.username!'暂无'}</span> 发表了帖子 <a  href="/topic/detail/${topic.id!''}.html" class="title">${topic.title!}</a>${topic.createtime?string('yyyy-MM-dd HH:mm')}</li>
						    		<li class="pc-display-none"> 
						    			<a href="/topic/detail/${topic.id!''}.html" class="title"><span class="blockname">[${topic.block.blockname!''}]</span>${topic.title!}</a>
						    			<p>${topic.createtime?string('yyyy-MM-dd HH:mm')} 
										  	<span class="mobile-float-right">回复 ${topic.answers!0}</span><span class="cut-off mobile-display-none">|</span>
							            	<span class="mobile-float-right">  浏览 ${topic.views!0}</span>
										</p>
						    		</li>
								</#list>
								<#else>
								<li class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></li>
								</#if>
							</ul>
						</div>
					    
					  </div>
					</div> 
				</div>
				<div style="text-align: center" class="front-desk">
			        <div class="laypage-main" id="topicpages"></div>
			    </div>
			</div>
			
		</div>
	</div>
</div>
<script>
var anlist = [];
<#list topicList.content as list>
anlist.push({"id":"${list.id!''}","title":"${list.title!''}","name":"${list.name!''}","price":"${list.price!''}","gradedescribe":"${list.gradedescribe!''}","username":"${list.username!''}","starlevel":"${list.starlevel!''}","describecontent":"${list.describecontent!''}","commenttime":"${list.commenttime!''}","fag":"${list.fag!''}"});
</#list>
console.log("推荐案例：anlist==》",anlist);
	layui.use(['element','laypage'], function(){
		  var element = layui.element();
		  
		  var laypage = layui.laypage;
		  laypage({
			    cont: 'topicpages'
			    ,first:'首页'
			    ,last:'末页'
			    ,pages: ${topicList.totalPages!'0'}
			    ,curr:${topicList.number+1}
			    ,skin: '#32c24d'
			    ,jump:function(obj, first){
			    	var curr = obj.curr;
			    	if(!first){
			    		location.href = '/user/center/${curruser.id}.html?userid=${curruser.id!''}&p='+curr+"<#if RequestParameters['q']?? && RequestParameters['q'] != ''>&q=${RequestParameters['q']}</#if>";
			    	}
			    }
		});
	}); 
</script>